//
//  STShowColListView.h
//  YiYueHairdresser
//
//  Created by zhouzhouzhou on 2018/10/10.
//  Copyright © 2018年 YuYiLian. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "STAlignmentFlowLayout.h"


typedef enum {
    ZYHShowCollectionTypeAlimentRight,
    ZYHShowCollectionTypeAlimentCenter
} ZYHShowCollectionAlimentType;


@class STShowColListView;
@protocol STShowColListViewDelegate<NSObject>
@optional
-(void)showColList:(STShowColListView *)view SelRow:(NSIndexPath *)row;
//向下划
-(void)showColListSlideDown:(STShowColListView *)view;
//向上划
-(void)showColListSlideUp:(STShowColListView *)view;
@end


@interface STShowColListView : UIView< UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,
UICollectionViewDelegate>{
    STAlignmentFlowLayout * flowLayout;
    UICollectionView *showCollectionView;
    CGRect collectionFrame;
    NSArray * arrShows;
}

@property(nonatomic,assign) int lineNum;//一行数量
@property(nonatomic,assign) BOOL isResponseClick;//当cell为有手势的view时（eg：button）是否同时响应cell的点击事件 默认NO
@property(nonatomic,assign) CGSize cellSize;
@property(nonatomic,assign) UIEdgeInsets sectionInset; //collection距离四边的距离
@property(nonatomic,assign) float verticalInterval; //cell竖向间隔 上下间距
@property(nonatomic,assign) float horizontalInterval; //cell水平间隔 左右间距
@property(nonatomic,strong) NSString * showViewClassName;//展示view的类名；
@property(nonatomic,assign) ZYHShowCollectionAlimentType alimentType;//少于一行数量时 是均等分 还是左对齐 默认左对齐

@property(nonatomic,weak)id<STShowColListViewDelegate> delegate;
-(void)setShowCollectionViewWithData:(id)data;

@end
